package com.zzb.framework.modules.log.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zzb.framework.common.BaseEntity;


/**
* 系统日志 实体类
*/
@TableName(value = "t_sys_log")
public class SysLogEntity extends BaseEntity<Long> {
    @TableId(value = "id")
    private Long id;
    @TableField(value = "username")
    private String username;
    //用户操作
    @TableField(value = "operation")
    private String operation;
    @TableField(value = "class_name")
    private String className; //类名
    @TableField(value = "method_name")
    private String methodName; //方法名
    @TableField(value = "params")
    private String params;  //参数
    @TableField(value = "execution_time")
    private Long executionTime;//执行时间
    @TableField(value = "ip")
    private String ip;//ip

    /*----------------------get set 方法----------------------*/

    @Override public Long getId() {
        return id;
    }

    @Override public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public Long getExecutionTime() {
        return executionTime;
    }

    public void setExecutionTime(Long executionTime) {
        this.executionTime = executionTime;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    /*----------------------toString 方法----------------------*/

    @Override public String toString() {
        return "SysLogEntity{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", operation='" + operation + '\'' +
                ", className='" + className + '\'' +
                ", methodName='" + methodName + '\'' +
                ", params='" + params + '\'' +
                ", executionTime=" + executionTime +
                ", ip='" + ip + '\'' +
                '}';
    }
}
